package com.miukoo.aikao.qpaper.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.miukoo.aikao.core.dtos.PageReqDto;
import com.miukoo.aikao.core.dtos.PageResDto;
import com.miukoo.aikao.qpaper.dto.PaperQuestionAnswerDto;
import com.miukoo.aikao.qpaper.dto.ext.PaperQuestionAnswerExtDto;
import com.miukoo.aikao.qpaper.pojos.PaperQuestionAnswer;

import java.util.List;

/**
* <p>
* 试卷考题备选答案业务类
* </p>
*
* @author 聪明笨狗
* @since 2020-05-25 16:33
*/
public interface PaperQuestionAnswerService extends IService<PaperQuestionAnswer> {

    /**
    * 分页查询数据
    * @param reqDto
    * @return
    */
    PageResDto<List<PaperQuestionAnswer>> paging(PageReqDto<PaperQuestionAnswerDto> reqDto);

    /**
     * 查找试卷试题答案列表
     * @param paperId
     * @param quId
     * @return
     */
    List<PaperQuestionAnswerExtDto> listForExam(Long paperId, Long quId);

    /**
     * 查找答案列表，用来填充
     * @param paperId
     * @param quId
     * @return
     */
    List<PaperQuestionAnswer> listForFill(Long paperId, Long quId);
}
